package cn.bdqn.study_String;

//字符和整数之间的转换
public class CharToInt {
    public static void main(String[] args){
        char c ='我';
        char c1 = 'a';
        int i1 = c;
        int i2 = c1;
        System.out.println(i1);
        System.out.println(i2);

        int x1 = 25105;
        int x2 = 97;
        char ch1 = (char) x1;
        char ch2 = (char) x2;
        System.out.println(ch1);
        System.out.println(ch2);

    }
}
